package xiaodou
{
	import spark.formatters.DateTimeFormatter;

	public class DateFormater
	{
		public static function format(date:Date, formatStr:String = "yyyy-MM-dd hh:mm:ss"):String
		{
			var f:DateTimeFormatter = new DateTimeFormatter();
			f.dateTimePattern = formatStr;
			return f.format(date);
		}
	}
}